﻿

using Prism.Ioc;
using Prism.Services.Dialogs;

namespace DualPlaneFR4Paster.ViewModels.Dialogs
{
    public class AboutDialogViewModel : DialogViewModel
    {
        private string name;
        public string Name
        {
            get { return name; }
            set { SetProperty(ref name, value); }
        }
        private string version;
        public string Version
        {
            get { return version; }
            set { SetProperty(ref version, value); }
        }
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            Name = parameters.GetValue<string>("Name");
            Version = parameters.GetValue<string>("Version");
        }
        public AboutDialogViewModel(IContainerProvider containerProvider) : base(containerProvider)
        {
            Title = "关于";
        }
    }
}
